<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="editor.css" />
<title>editor</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="editor.js"></script>
</head>
<style type="text/css">
p { padding:0; margin:0;}
</style>
<body>
<form onsubmit="return checkForm(this)">
  <textarea name="content" style="width:550px;height:300px;">init content </textarea>
  <input type="submit" />
</form>
<script type="text/javascript">


$(":input[name='content']").editor({path:"./"});



function checkForm(form) {
	
	alert(form.content.value);
	
	return false;	
}
</script>
</body>
</html>
